﻿using System.IO;
using Microsoft.SharePoint;
using DE.Sdc.SharePoint.Common.Deployment;

namespace DE.Sdc.SharePoint.ContentDeployment
{
    public class CmsContentReceiver : SPFeatureReceiver
    {
        public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            string contentStructureXmlPath = Path.Combine(properties.Definition.RootDirectory, "ContentStructure.xml");
            ContentStructureImporter.Execute(contentStructureXmlPath, properties);
            
        }

        public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
        {
            
        }

        public override void FeatureInstalled(SPFeatureReceiverProperties properties)
        {
        }

        public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
        {

        }

        
    }
}
